package com.sunmouse.toolkit.widget.progress;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.SeekBar;

/**
 * Created by leiyun on 2018/6/9.
 */
public class VerticalBar extends SeekBar {

    public VerticalBar(Context context) {
        this(context, null, 0);
    }

    public VerticalBar(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public VerticalBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    protected synchronized void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        canvas.rotate(90);
//        setRotation(90);
    }
}
